-- GENERATED SPELL FOR [Dragonmaw Wyrmcaller] --


function spell0_22960(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22960', 593, 1)
end

function spell1_22960(pUnit, Event) --@Fixate,n/a--
pUnit:FullCastSpellOnTarget(40892,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22960', 10252, 1)
end

function spell2_22960(pUnit, Event) --@Jab,n/a--
pUnit:FullCastSpellOnTarget(40895,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22960', 610, 1)
end

function Sorts_22960(pUnit, Event)
local choix_sorts_22960 = math.random(0, 2)
if choix_sorts_22960 == 0 then
pUnit:RegisterEvent('spell0_22960', 1, 1)
end
if choix_sorts_22960 == 1 then
pUnit:RegisterEvent('spell1_22960', 1, 1)
end
if choix_sorts_22960 == 2 then
pUnit:RegisterEvent('spell2_22960', 1, 1)
end
end

function mob22960_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22960', math.random(1500, 3000), 1)
end

function mob22960_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22960_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22960_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22960, 1, 'mob22960_Action')
RegisterUnitEvent(22960, 2, 'mob22960_Leave')
RegisterUnitEvent(22960, 3, 'mob22960_Kill')
RegisterUnitEvent(22960, 4, 'mob22960_Die')
